<% if controller.ardata.will_paginate.enabled -%>
<span style="float: right; text-align:right">
    <%= image_tag("progress4.gif", :align => "middle", :border => 0, :id => "spinner", :style =>"display: none;" ) %>
  </span>
<%= will_paginate @resources, controller.ardata.will_paginate.options -%>
<% end -%>
  <table>
    <thead>
      <%= ar_index_table_headers %>
    </thead>
    <tbody>
      <%= ar_index_table_data %>
    </tbody>
  </table>